package com.chuan.thinkingjava.think1;

import java.util.ArrayList;
import java.util.List;

public class Test3 {
	
	@Override
	public String toString() {
		return " InfiniteRecursion address : "+ super.toString() +"\n";
	}
	public static void main(String[] args) {
		List<Test3> list = new ArrayList<Test3>();
		for (int i = 0; i < 10 ; i++) {
			list.add(new Test3());
			System.out.println(list);
		}
	}
}
